为什么#include <hash_map>编译不能通过

来源:百度知道 编辑:UC知道 时间:2024/05/29 04:08:12
msdn里面明明写着可以这样啊,我写在我的文件里,编译就是过不去,太奇怪了
我用的是Visual C++ 6.0

什么版本的VS,2003?2005?

你搜索一下应该很多的。

You can't use VC2005's hash map in VC6, that's for sure. VC6 didn't have the best template support, so you need to find a hash map designed specifically for VC6. That being said, I seem to recall VC6 shipping with hash maps of its own. I'm not 100% certain about this, but it'd be worth searching through the header files.

你是想用STL里的map吧,你#include<map>就可以了

vC6.0有这个的文件吗,没听说过